@ECHO OFF

SET TIMEOUT=60

SET /p REPORTSERVER=Enter Report URL (Leave blank for http://localhost/ReportServer):
IF NOT DEFINED REPORTSERVER SET REPORTSERVER=http://localhost/ReportServer

SET /p RS=Enter RS.EXE path (Leave blank for "C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\RS.EXE"):
IF NOT DEFINED RS SET RS="C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\RS.EXE"

::Write Log Header
ECHO.
ECHO Starting Load at %DATE% %TIME%
ECHO REPORTSERVER   = %REPORTSERVER%
ECHO TIMEOUT        = %TIMEOUT%
ECHO RS             = %RS%
ECHO.

::Run Scripts
ECHO Running script "BizTalk Reports\BizTalk Reports.fldr.rss"
%RS% -i "BizTalk Reports\BizTalk Reports.fldr.rss" -s %REPORTSERVER% -l %TIMEOUT% 2>&1
ECHO.

ECHO Running script "Data Sources\Data Sources.fldr.rss"
%RS% -i "Data Sources\Data Sources.fldr.rss" -s %REPORTSERVER% -l %TIMEOUT% 2>&1
ECHO.

ECHO Running script "Data Sources\BizTalkReport.rds.rss"
%RS% -i "Data Sources\BizTalkReport.rds.rss" -s %REPORTSERVER% -l %TIMEOUT% 2>&1
ECHO.

ECHO Running script "BizTalk Reports\OrchestrationSummary.rdl.rss"
%RS% -i "BizTalk Reports\OrchestrationSummary.rdl.rss" -s %REPORTSERVER% -l %TIMEOUT% 2>&1
ECHO.

ECHO Running script "BizTalk Reports\OrchestrationInvocation.rdl.rss"
%RS% -i "BizTalk Reports\OrchestrationInvocation.rdl.rss" -s %REPORTSERVER% -l %TIMEOUT% 2>&1
ECHO.

ECHO Running script "BizTalk Reports\OrchestrationReceivePort.rdl.rss"
%RS% -i "BizTalk Reports\OrchestrationReceivePort.rdl.rss" -s %REPORTSERVER% -l %TIMEOUT% 2>&1
ECHO.

ECHO Running script "BizTalk Reports\OrchestrationReceivePortSummary.rdl.rss"
%RS% -i "BizTalk Reports\OrchestrationReceivePortSummary.rdl.rss" -s %REPORTSERVER% -l %TIMEOUT% 2>&1
ECHO.

ECHO Running script "BizTalk Reports\Orchestrations.rdl.rss"
%RS% -i "BizTalk Reports\Orchestrations.rdl.rss" -s %REPORTSERVER% -l %TIMEOUT% 2>&1
ECHO.

ECHO Running script "BizTalk Reports\OrchestrationSendPort.rdl.rss"
%RS% -i "BizTalk Reports\OrchestrationSendPort.rdl.rss" -s %REPORTSERVER% -l %TIMEOUT% 2>&1
ECHO.

ECHO Running script "BizTalk Reports\OrchestrationSendPortSummary.rdl.rss"
%RS% -i "BizTalk Reports\OrchestrationSendPortSummary.rdl.rss" -s %REPORTSERVER% -l %TIMEOUT% 2>&1
ECHO.

ECHO Running script "BizTalk Reports\ReceivePortWithPortSubscriptions.rdl.rss."
%RS% -i "BizTalk Reports\ReceivePortWithPortSubscriptions.rdl.rss" -s %REPORTSERVER% -l %TIMEOUT% 2>&1
ECHO.

ECHO Running script "BizTalk Reports\OrchestrationsTree.rdl.rss."
%RS% -i "BizTalk Reports\OrchestrationsTree.rdl.rss" -s %REPORTSERVER% -l %TIMEOUT% 2>&1
ECHO.

ECHO.
ECHO Finished Load at %DATE% %TIME%
ECHO.

PAUSE